package com.everwin.web.controller.StudentInfo;

import cn.afterturn.easypoi.excel.ExcelImportUtil;
import cn.afterturn.easypoi.excel.entity.ImportParams;
import com.everwin.common.core.controller.BaseController;
import com.everwin.common.core.domain.AjaxResult;
import com.everwin.common.core.page.TableDataInfo;
import com.everwin.common.json.JsonUtil;
import com.everwin.web.domain.CarInfo;
import com.everwin.web.domain.StudentInfo;
import com.everwin.web.service.CarInfoService;
import com.everwin.web.service.StudentInfoService;
import lombok.SneakyThrows;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@RestController
@RequestMapping("/student")
@CrossOrigin
public class StudentInfoController extends BaseController {

    @Autowired
    StudentInfoService studentInfoService;

    /**
     * 查询 车辆抵押信息
     */
    @RequestMapping("/info/list")
    public TableDataInfo queryCreditStrategyList(StudentInfo request) {
        startPage();
        List<StudentInfo> list = studentInfoService.queryDataInfoList(request);
        logger.info("学生信息查询结果:{}", JsonUtil.toJson(list));
        return getDataTable(list);
    }


}
